package com.zhen.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zhen.mapper.UserMapper;
import com.zhen.po.User;
import com.zhen.service.UserService;
@Service
public class UserServiceImpl implements UserService {
	@Resource(name="userMapper")
	private UserMapper userMapper;
	@Override         
	public List<User> getUser(User obj) {
		if(obj==null)
			return null;
		return userMapper.getUser(obj);
//		return null;
	}

	@Override
	public boolean addUser(User user) {
		if(user==null)
			return false;
		userMapper.addUser(user);
		return true;
	}

}
